package zlatan_demo11_foreach

object ClassDemo11 {
  def main(args: Array[String]): Unit = {
    val list1=(1 to 10).toList
    val list2=list1.fold(100)(_+_)
    println(list2)
  }

}
